package com.wang.ymcc.feignclient;

import com.wang.lwm.result.JSONResult;
import com.wang.ymcc.domain.MediaFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/*
    1.导包
 */
@FeignClient(value = "service-media",fallback = com.wang.ymcc.feignclient.LoginControllerFallBack.class)
public interface MediaServerFeign {
    @RequestMapping(value = "/mediaFile/a/{id}",method = RequestMethod.GET)
    public List<MediaFile> get1(@PathVariable("id")Long id);

}
